<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function fn(){
            let ss =+prompt('秒数')
        let h = parseInt(ss / 3600 % 24)
        let m = parseInt(ss / 60 % 60)
        let s = parseInt(ss % 60)
        alert(`转换后为${h}小时${m}分钟${s}秒`)}
        fn()
    </script>
</body>
</html>